package com.kk.interpreter;

import java.util.HashMap;

/**
 * 抽象运算符解释器
 *
 * @author o_o
 * @date 2022-06-19
 */
public class SymbolExpression extends Expression {

    protected Expression left;

    protected Expression right;

    public SymbolExpression(Expression left, Expression right) {
        this.left = left;
        this.right = right;
    }

    /**
     * 子类去实现，所以这里是一个默认实现
     *
     * @param var
     * @return
     */
    @Override
    public int interpreter(HashMap<String, Integer> var) {
        return 0;
    }
}
